package com.view;
import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
public class PanelTambahPinjaman extends JPanel implements ActionListener{
private JLabel labelKodeAnggota, labelKodeKoleksi, judul, garis, labelText;
private JTextField textKodeAnggota, textKodeKoleksi;
private JButton tombolSimpan, tombolBatal;
public PanelTambahPinjaman(){
    this.setLayout(null); 
    this.setVisible(true);
    this.setSize(500,500);
    judul = new JLabel("                                 K A I T O   L I B R A R Y"); 
    judul.setDisplayedMnemonic(20);
    garis = new JLabel(" =================================");
        this.add(judul); 
        this.add(garis); 
        judul.setForeground(Color.blue); 
        judul.setBounds(20,10,400,30); 
        garis.setBounds(17,25,400,30); 
    labelText = new JLabel("Data-data Anggota");
        labelText.setForeground(Color.red); 
        this.add(labelText); 
        labelText.setBounds(20,60,150,20);
    labelKodeKoleksi = new JLabel("-  Nama"); 
        labelKodeKoleksi.setBounds(30, 85, 70, 20);
        this.add(labelKodeKoleksi); 
        textKodeKoleksi = new JTextField(50); 
            textKodeKoleksi.setBounds(90,85,155,20); 
            this.add(textKodeKoleksi); 
    labelKodeAnggota = new JLabel("-  ID"); 
        labelKodeAnggota.setBounds(30, 110, 70, 20);
        this.add(labelKodeAnggota); 
        textKodeAnggota = new JTextField(50); 
            textKodeAnggota.setBounds(90,110,155,20); 
            this.add(textKodeAnggota); 
    tombolSimpan = new JButton("Simpan"); 
        tombolSimpan.setBounds(145, 140, 100, 30);
        this.add(tombolSimpan); 
}

@Override
    public void actionPerformed(ActionEvent e) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}

